package com.hackafone.storytail;

import android.app.Application;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;

public class StoryTailApplicationContext extends Application
{

	public static final String LOG_TAG = "StoryTailApplicationContext";

	@Override
	public void onCreate()
	{
		super.onCreate();
	}

	public boolean isNetworkAvailable()
	{
		ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);
		NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
		return activeNetworkInfo != null;
	}

	
}
